package cn.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class Printer {
    //品牌和价格
    private String brand;
    private int money;
    private Ink ink;
    private TextPaper paper;

    public void print(String s){
        System.out.println("当前打印机价格是"+money+",品牌是"+brand);
        System.out.println("墨水的颜色是"+ink.getColor());
        paper.print(s);
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public void setPaper(TextPaper paper) {
        this.paper = paper;
    }
}
